/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package co.com.ltda.xyz.inversiones.util.exception;

import org.apache.log4j.Logger;

/**
 * 
 * Excepción propia del sistema para las excepciones en los dto
 * @author David Alvarez
 *
 */

public class DtoException extends Exception {

	Logger log = Logger.getLogger(DtoException.class);
	
	public DtoException() {
		super();
		log.error(this.getMessage(), this);
	}

	public DtoException(String arg0, Throwable arg1) {
		super(arg0, arg1);
		log.error(arg0, arg1);
	}

	public DtoException(String arg0) {
		super(arg0);
		log.error(arg0, this);
	}

	public DtoException(Throwable arg0) {
		super(arg0);
		log.error(arg0.getMessage(), arg0);
	}
	
	

}
